package com.top10.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.top10.entity.Coupon;
import com.top10.mapper.CouponMapper;
import com.top10.service.ICouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ellen
 * @since 2018-09-27
 */
@Service
public class CouponServiceImpl extends ServiceImpl<CouponMapper, Coupon> implements ICouponService {

    @Autowired
    private CouponMapper couponMapper;


    @Override
    public List<Map<String, Object>> couponNotUser(String userId, long type) {
        return couponMapper.couponNotUser(userId,type);
    }
}
